#pragma GCC optimize(2)

#include<bits/stdc++.h>

using namespace std;
const int maxn=23456;
int t,n,a,b,sum;
int main()
{
    cin>>t;
    while(t--){
        cin>>n>>a>>b;
        int w=__gcd(a,b);
        sum=n/w;
        if(sum%2==0) cout<<"No"<<endl;
        else cout<<"Yes"<<endl;
    }
    return 0;
}
/*

16
2 1 2
3 1 3
67 1 2
100 1 2
8 6 8
9 6 8
10 6 8
11 6 8
12 6 8
13 6 8
14 6 8
15 6 8
16 6 8
1314 6 8
1994 1 13
1994 7 12
*/
